<table width="99%" align=center border="0"   style="border:1px solid #bdc0c3;" cellspacing="0" cellpadding="0">
    <tr> 
        <td colspan=2> 
          <form name="searchform" action="" method=post>
          <div class="display_mode">
                <%if("basic_search".equals(searchtype)){ %>
                <span>
                <strong><font size="2">
                <input type="radio" value="0"  name="datarange" id="datarange" <%if("0".equals(datarange)){out.println(" checked");} %> onclick="filterResult('0');"/>
                &nbsp;&nbsp;全部文献&nbsp;&nbsp;
                <input type="radio" value="1"  name="datarange" id="datarange" <%if("1".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('1');"/>
                &nbsp;&nbsp;中文期刊&nbsp;&nbsp;
                <input type="radio" value="2"  name="datarange" id="datarange" <%if("2".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('2');"/>
                &nbsp;&nbsp;英文期刊&nbsp;&nbsp;
                <input type="radio" value="3"  name="datarange" id="datarange" <%if("3".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('3');"/>
                &nbsp;&nbsp;古代文献&nbsp;</font></strong>
                </span>
                <%} %>
                <%if("advsearch".equals(searchtype)){ %>
                <span>
                <strong><font size="2">
                <input type="radio" value="0"  name="datarange" id="datarange" <%if("0".equals(datarange)){out.println(" checked");} %> onclick="filterResult('0');"/>
                &nbsp;&nbsp;全部文献&nbsp;&nbsp;
                <input type="radio" value="1"  name="datarange" id="datarange" <%if("1".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('1');"/>
                &nbsp;&nbsp;中文期刊&nbsp;&nbsp;
                <input type="radio" value="2"  name="datarange" id="datarange" <%if("2".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('2');"/>
                &nbsp;&nbsp;英文期刊&nbsp;&nbsp;
                <input type="radio" value="3"  name="datarange" id="datarange" <%if("3".equals(datarange)){out.println(" checked");} %>  onclick="filterResult('3');"/>
                &nbsp;&nbsp;古代文献&nbsp;</font></strong>
                </span>
                <%} %>
                 
                <%if("advmod".equals(searchtype)||"adveng".equals(searchtype)){ %>
                <b><font color=red size=3>排序方式：</font>
                <a href="javaScript:orderResult('a.title','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>题名<%if("2".equals(orderNum)&&"a.title".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                <a href="javaScript:orderResult('a.PERIODICALNAME','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>刊名<%if("2".equals(orderNum)&&"a.PERIODICALNAME".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                <a href="javaScript:orderResult('a.YEARSTR','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>出版时间<%if("2".equals(orderNum)&&"a.YEARSTR".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                </b>
                
                <%} %>
                 <%if("advbook".equals(searchtype)){ %>
                <b><font color=red size=3>排序方式：</font>
                <a href="javaScript:orderResult('a.bookname','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>书名<%if("2".equals(orderNum)&&"a.bookname".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                <a href="javaScript:orderResult('a.bookcd','<%if("1".equals(orderNum)){out.print("2");}else if("2".equals(orderNum)){out.print("1");} else {out.print("1");}%>')";>朝代<%if("2".equals(orderNum)&&"a.bookcd".equals(orderName)){%><img src="<%=basePath %>/app/images/arrow_up.gif"><%}else{ %><img src="<%=basePath %>/app/images/arrow_down.gif"><%} %></a>&nbsp;&nbsp;
                 </b>
                 
                <%} %>
           </div>
           <input type="hidden"  value="<%=onesql %>" name="onesql" id="onesql"/> 
           <input type="hidden"  value="<%=tags==null?"":tags %>" name="tags" id="tags"/> 
           <input type="hidden"  value="<%=searchtype %>" name="searchtype" id="searchtype"/> 
           <input type="hidden"  value="<%=paramstr==null?"":paramstr %>" name="paramstr" id="paramstr"/>  
           <input type="hidden"  value="<%=onekeyword==null?"":onekeyword %>" name="onekeyword" id="onekeyword"/>  
            
          </form>
          <div id="contentarea">
          <form name="dataform" action="<%=basePath %>data/exportAllData.do" method=post>  
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="summary">
           <% if(null != datalist && datalist.size()>0){
                int counter = 0;
      		    for(int i =0;i<datalist.size();i++){
      			    Map dm = (Map)datalist.get(i);
      			    String type = dm.get("DATATYPE")+"";
      			    counter++; 
          %> 
          <tr>
            <th colspan="2" style='word-break:break-all'> <input type="checkbox" name="paperid" id="paperid" value="<%=dm.get("ID")%>"/>
                 <%=(pagecountInt*(pagenumInt-1))+i+1 %>&nbsp;&nbsp;&nbsp;
                  <%if("1".equals(type)||"2".equals(type)){
                                   String title = (String)dm.get("TITLE");
                                   if(null == title)
                                      title = "";
                                   String temp = title.length()>80?title.substring(0,80)+"...":title;
                  				   out.print("<a  href=javaScript:openwindow(\"");
                  				   out.print(basePath);
                  				   out.print("search/viewdetail.do?pid="+ dm.get("ID") );
                  				   //<font color=\"#BF0060\">
                  				   out.print("\",'800','600',''); ><span id=titleinfo title='"+title+"'>");
                                   out.print(SystemUtil.higiLight(temp,null,keyword));
                                
                                  //  out.print("</font>"); 
                                     out.print(" </span>");
                                   //out.println("("+dm.get("YEARSTR")+")-");
                                   out.print("</a>"); 
                                   }
                              else if("3".equals(type)){
                              		 out.print("<a href=javaScript:openwindow(\"");
                  				    out.print(basePath);
                  				    out.print("search/viewdetail.do?pid="+ dm.get("ID") );
                                    out.print("\",'800','600',''); id=titleinfo title='"+dm.get("BOOKNAME")+"'>");
                                    //<font color=\"#796400\">
                              		   out.print(SystemUtil.higiLight((String)dm.get("BOOKNAME"),null,keyword)); 
                                    //out.print("</font>");  
                                     out.print("</a>");
                              }%> 
               <%if("1".equals(dm.get("ISIMG")+"")&&!role4){ %>
                <input onclick="downloadpdf('<%=dm.get("ID") %>');" type="button" value="原文下载" class="origi" />
                <%}%></th>
          </tr>
          <tr>
            <td colspan="2" class="ml_45" align=left>
            <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <%if("1".equals(type)){ %> 
           
                 <tr>
	                <td><b><font color=#8FBC8F>刊名:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("PERIODICALNAME")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>作者:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHOR")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td><b><font color=#8FBC8F>第一作者单位:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHORUNIT")),null,keyword) %></td>
	              </tr>
                  <tr>
	                <td width="100"><b><font color=#8FBC8F>中文关键词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("KEYWORD")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>中文主题词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("SUBJECTWORD")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td><b><font color=#8FBC8F>摘要:</font></b></td>
	                <td> 
	                <%
	                String abstr = StringUtilTool.NULL2Blank((String)dm.get("ABSTRACT"));
	                if(abstr.length()>300){
	                	out.println(SystemUtil.higiLight(abstr.substring(0,300),null,keyword));
	                	out.println("...");
	                }else{
	                	out.println(SystemUtil.higiLight(abstr,null,keyword));
	                } 
	                 %>
	                </td>
	              </tr> 
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>年份/卷/期/页码:</font></b></td>
	                <td ><%=StringUtilTool.NULL2Blank((String)dm.get("YEARSTR")) %>-<%=StringUtilTool.NULL2Blank((String)dm.get("VOLUME")) %>-<%= StringUtilTool.NULL2Blank((String)dm.get("PERIOD"))%>-<%=StringUtilTool.NULL2Blank((String)dm.get("PAGENO")) %></td>
	              </tr> 
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>基金:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("FUNDNAME")),null,keyword) %></td>
	              </tr> 
	               <%}else if("2".equals(type)) {%>  
	               
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文作者:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHOR")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文作者地址:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHORADDRESS")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>英文刊名:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("PERIODICALNAME")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>年份/卷/期/页码:</font></b></td>
	                <td ><%=StringUtilTool.NULL2Blank((String)dm.get("YEARSTR")) %>-<%=StringUtilTool.NULL2Blank((String)dm.get("VOLUME")) %>-<%= StringUtilTool.NULL2Blank((String)dm.get("PERIOD"))%>-<%=StringUtilTool.NULL2Blank((String)dm.get("PAGENO")) %></td>
	              </tr>
                   <tr>
	                <td width="100"><b><font color=#8FBC8F>英文关键词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("KEYWORD")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文主题词:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("SUBJECTWORD")),null,keyword) %></td>
	              </tr> 
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>英文摘要:</font></b></td>
	                <td > <%
	                String abstr = StringUtilTool.NULL2Blank((String)dm.get("ABSTRACT"));
	                if(abstr.length()>300){
	                	out.println(SystemUtil.higiLight(abstr.substring(0,300),null,keyword));
	                	out.println("...");
	                }else{
	                	out.println(SystemUtil.higiLight(abstr,null,keyword));
	                }
	                
	                 %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>出版地:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("PUBLISHAREA")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>文献类型:</font></b></td>
	                <td ><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("DOCUMENTTYPE")),null,keyword) %></td>
	              </tr> 
	               <%}else if("3".equals(type)) {%>
	              
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>作者:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("AUTHOR")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>朝代:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("BOOKCD")),null,keyword) %></td>
	              </tr>
	               <tr>
	                <td width="100"><b><font color=#8FBC8F>中医病名:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("TCMNAME")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>卷册章节:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("VOLUMESECTION")),null,keyword) %></td>
	              </tr>
	              <tr>
	                <td width="100"><b><font color=#8FBC8F>版本:</font></b></td>
	                <td><%=SystemUtil.higiLight(StringUtilTool.NULL2Blank((String)dm.get("BOOKVERSION")),null,keyword) %></td>
	              </tr> 
	              <tr>
	                <td><b><font color=#8FBC8F>原文文本化:</font></b></td>
	                <td> <%
	                String abstr = StringUtilTool.NULL2Blank((String)dm.get("ORIGINALTEXT"));
	                if(abstr.length()>300){
	                	out.println(SystemUtil.higiLight(abstr.substring(0,300),null,keyword)); 
	                	out.println("...");
	                }else{
	                	out.println(SystemUtil.higiLight(abstr,null,keyword));
	                }
	                
	                 %></td>
	              </tr> 
	              <%} %>
            </table>
            
            
            </td>
          </tr> 
          <%}}else{ %>
          <tr>
            <td colspan="2" align="center" class="ml_45">
	             <font color=red size=5>没有符合查询条件的结果!</font>
	        </td>
          </tr>  
          <%} %>
        </table>  
        </form>
         </div>
        <div class="page">
            <p>
                <%=pageStr%>
            </p>
            <input onclick="selectAll(true,'paperid');" type="button" value="全选" class="all_s"/>
            <input onclick="selectAll(false,'paperid');" type="button" value="清除" class="clear"/>
            <input onclick="exportData();" type="button" value="导出" class="saver"/>
        </div>
        </td>
    </tr>
</table>
</body>
</html>
<script>
   

<%if(null != keyword && !"".equals(keyword)){%>
  	// var divObj=document.getElementById("titleinfo"); 
  	// alert(divObj.length);
  	// MarkHighLight(divObj,"<%=keyword%>"); 
  <%}%>
</script>
